package com.goldenbean.test;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;


@ManagedBean
@RequestScoped
public class Table {
	
	private List userList = new ArrayList<User>();

	public List getUserList() {

		for (int i = 0; i < 10; i++) {
			User user = new User();
			user.setUserName("zhangsan" + i);
			user.setPassword("123456" + i);
			user.setTel("88899900" + i);
			user.setAddress("address is " + i);
			userList.add(user);
		}
		
		return userList;
	}

	public void setUserList(List userList) {
		this.userList = userList;
	}
	
	

}
